-- GENERATED SPELL FOR [Qiraji Scorpion] --


function spell0_15317(pUnit, Event) --@Acid Spit,n/a--
pUnit:FullCastSpellOnTarget(26050,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15317', 30000, 1)
end

function spell1_15317(pUnit, Event) --@Pierce Armor,n/a--
pUnit:FullCastSpellOnTarget(6016,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15317', 20000, 1)
end

function Sorts_15317(pUnit, Event)
local choix_sorts_15317 = math.random(0, 1)
if choix_sorts_15317 == 0 then
pUnit:RegisterEvent('spell0_15317', 1, 1)
end
if choix_sorts_15317 == 1 then
pUnit:RegisterEvent('spell1_15317', 1, 1)
end
end

function mob15317_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15317', math.random(1500, 3000), 1)
end

function mob15317_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15317_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15317_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15317, 1, 'mob15317_Action')
RegisterUnitEvent(15317, 2, 'mob15317_Leave')
RegisterUnitEvent(15317, 3, 'mob15317_Kill')
RegisterUnitEvent(15317, 4, 'mob15317_Die')
